package JavaSEAdvance.day01_extends.d012_extends;

/**
 * @author Xiao
 * @date 2021/7/15
 */
public class ProjectManager extends Employee {
    private int awards;

    public ProjectManager() {
    }

    /*@Override
    public String toString() {
        return "ProjectManager{" +
                "awards=" + awards +
                '}';
    }*/

    @Override
    public String toString() {
        return "ProjectManager{" +
                "name='" + getName() + '\'' +
                ", age=" + getAge() +
                ", salary=" + getSalary() +
                "，awards=" + awards +
                '}';
    }

    @Override
    public void working() {
        System.out.println("分配任务，检查程序员提交的代码");
    }

    public ProjectManager(String name, int age, int salary, int awards) {
        super(name, age, salary);
        this.awards = awards;
    }
}
